package com.xframe.domain.e3sp.basedata;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xframe.domain.BaseModel;
import com.xframe.xdal.core.annotation.*;
import com.xframe.xdal.core.constant.AutoFillType;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @Description: 适用车型目录对照
 * @ClassName: com.xframe.domain.e3sp.basedata.CatalogSuit
 * @Author: lmx
 * @CreateTime: 2024/01/02
 **/
@Data
@Accessors(chain=true)
@XTable(value = "p_t02_catalog_suit", label = "适用车型目录对照")
@XSelectItem(keyName = "keyId",codeName = "suitModelId",textName = "suitModelId")
@XBelongsTo(typeName = "com.xframe.domain.e3sp.basedata.Catalog",foreignKey = "catalogId", targetKey = "catalogId",as = "refCatalog")
@XBelongsTo(typeName = "com.xframe.domain.e3sp.basedata.SuitModel",foreignKey = "suitModelId", targetKey = "suitModelId",as = "refSuitModel")
public class CatalogSuit extends BaseModel {
    /**
     * 适用车型目录对照ID
     */
    @AutoFill(AutoFillType.Snowflake)
    @XColumn(name = "key_id", primaryKeyFlag = true,desc = "适用车型目录对照ID")
    private Long keyId;

    /**
     * 适用车型ID
     */
    @XQueryCondition
    @XColumn(desc = "适用车型ID",uniqueFlag = true)
    private Long suitModelId;

    /**
     * 备件目录清单ID
     */
    @XQueryCondition
    @XColumn(desc = "备件目录清单ID",uniqueFlag = true)
    private Long catalogId;


    private SuitModel refSuitModel;

    private Catalog refCatalog;
}